//
//  ConnectModel.h
//  UI 17 _网络图片获取
//
//  Created by dllo on 15/5/7.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ConnectionModelDelegate <NSObject>

- (void)connectFinished:(NSData *)data;

@end



@interface ConnectModel : NSObject<NSURLConnectionDelegate>

+ (void)connectWithStr:(NSString *)str delegate:(id<ConnectionModelDelegate>)delegate;

@property (nonatomic, retain) NSMutableData *receiveData;

@property (nonatomic, assign) id<ConnectionModelDelegate>delegate;

- (void)startConnection:(NSString *)str;
@end
